import store from '@/store'
// 相同的配置项
export default {
  methods: {
    checkPermission(point) {
      const { userInfo } = store.state.user
      if (userInfo.roles && userInfo.roles.points) {
        return userInfo.roles.points.some(item => item === point)
      }
      return false
    }
  }
}
